﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo03
{
    class Circle:Shape
    {
        protected double radius;

        public double Radius
        {
            get { return this.radius; }
            set { this.radius = value; }
        }
        public override void GetArea(double a)
        {
            //base.GetArea(a);
            double result;
            result = 3.14 * a * a;
            Console.WriteLine("圆的面积为："+result);
        }
    }
}
